﻿<MRow Justify="JustifyTypes.SpaceAround">
    <MTimePicker @bind-Value="_time"
                 AllowedHours="_allowedHours"
                 AllowedMinutes="_allowedMinutes"
                 Class="mt-4"
                 Format="TimeFormat.Hr24"
                 Scrollable
                 Min="new TimeOnly(9,30)"
                 Max="new TimeOnly(22,15)"></MTimePicker>
    <MTimePicker @bind-Value="_timeStep"
                 AllowedMinutes="_allowedStep"
                 Class="mt-4"
                 Format="TimeFormat.Hr24"></MTimePicker>
</MRow>

@code {
    private TimeOnly? _time = new TimeOnly(11, 15, 0);
    private TimeOnly? _timeStep = new TimeOnly(10, 10, 0);
    private Func<int, bool> _allowedHours = v => v % 2 != 0;
    private Func<int, bool> _allowedMinutes = v => v >= 10 && v <= 50;
    private Func<int, bool> _allowedStep = m => m % 10 == 0;
}

